package com.smedi.ismedi.constructionproject.core.infrastructure.constant;


import com.smedi.ismedi.web.starter.exception.BasicError;
import com.smedi.ismedi.web.starter.exception.ErrorItem;

/**
 * 错误消息提示
 */
public class CustomError extends BasicError {
    public static final ErrorItem HR_ORGANIZATION_ID_MISS = new ErrorItem(1, "企业组织id缺失！");

    public static final ErrorItem HR_ORGANIZATION_CAN_NOT_HAS_PROJECT = new ErrorItem(2, "当前组织不允许创建项目！");

    public static final ErrorItem PROJECT_CODE_DUPLICATE = new ErrorItem(3, "项目编码重复！");

    public static final ErrorItem CONTRACT_DURATION_RANGE_ERROR = new ErrorItem(4, "合同日期范围错误！");

    public static final ErrorItem ACTUAL_DURATION_RANGE_ERROR = new ErrorItem(5, "实际工期范围错误！");

    public static final ErrorItem DAY_FIELDS_CANNOT_HAS_EMPTY = new ErrorItem(6, "两个日期必须都填写！");

    public static final ErrorItem CONSTRUCTION_PERMIT_LENGTH_ERROR = new ErrorItem(7, "施工许可证位数错误！");

    public static final ErrorItem MOBILE_FORMAT_ERROR = new ErrorItem(8, "手机号格式错误");

    public static final ErrorItem PROJECT_NOT_AVAILABLE = new ErrorItem(9, "项目不可用或不存在！");

    public static final ErrorItem STANDARD_BID_SECTION_CONFIG_MISS = new ErrorItem(10, "默认标准的配置项类型缺失！");

    public static final ErrorItem BID_SECTION_CONFIG_TYPE_DUPLICATE = new ErrorItem(11, "配置项类型重复！");

    public static final ErrorItem BID_SECTION_CONFIG_ORGANIZATION_DUPLICATE = new ErrorItem(12, "配置项组织重复！");

    public static final ErrorItem PROJECT_ORG_CAN_NOT_BE_CONFIG = new ErrorItem(13, "当前组织不可用于配置项！");

    public static final ErrorItem BID_SECTION_CONFIG_TYPE_CAN_ONLY_HAS_ONE_ORG = new ErrorItem(14, "建设单位、设计单位、施工单位、监理单位只允许放一个项目组织！");

    public static final ErrorItem ORG_NOT_AVAILABLE = new ErrorItem(15, "当前组织不存在，或不可用！");

    public static final ErrorItem PROJECT_ORGANIZATION_NOT_BELONG_PROJECT = new ErrorItem(16, "项目组织不属于该项目！");

    public static final ErrorItem PERSON_NOT_AVAILABLE = new ErrorItem(17, "人员不可用或不存在！");

    public static final ErrorItem BATCH_SAVE_MAX_ERROR = new ErrorItem(18, "批量保存超过最大数量！");

    public static final ErrorItem EXTERNAL_ORG_NOT_ALLOW_INTERNAL_PERSON_ASSIGNMENT = new ErrorItem(19, "外部单位下不允许添加企业内部人员！");

    public static final ErrorItem DUPLICATE_PROJECT_ASSIGNMENT = new ErrorItem(20, "重复的项目分配！");

    public static final ErrorItem PROJECT_ORGANIZATION_ID_MISS = new ErrorItem(21, "项目组织id缺失！");

    public static final ErrorItem PROJECT_ID_MISS = new ErrorItem(22, "项目id缺失！");

    public static final ErrorItem PROJECT_NOT_EXIST = new ErrorItem(23, "项目不存在！");

    public static final ErrorItem BID_SECTION_NOT_EXIST = new ErrorItem(24, "标段不存在！");

    public static final ErrorItem PROJECT_ASSIGNMENT_NOT_EXIST = new ErrorItem(25, "项目分配不存在！");

    public static final ErrorItem PROJECT_MEMBER_IS_NOT_EMPTY = new ErrorItem(26, "项目成员方不为空！");

    public static final ErrorItem PROJECT_MEMBER_IS_EMPTY = new ErrorItem(27, "项目成员方为空！");

    public static final ErrorItem PROJECT_FREE_INSTALL = new ErrorItem(28, "该项目已被设为免装项目，无需再次进行申请！");

    public static final ErrorItem PROJECT_STOP = new ErrorItem(29, "该项目已被设为暂停项目，无需再次进行申请！");

    public static final ErrorItem PROJECT_APPLYING = new ErrorItem(30, "此项目有正在进行的申请，不允许申请！");

    public static final ErrorItem DUPLICATE_REQUEST = new ErrorItem(99999, "重复请求，请稍后再试！");

    public static final ErrorItem EPC_LEADER_ID_MISS = new ErrorItem(31, "该单位下 主体院EPC分管领导不存在！");

    public static final ErrorItem ENGINEER_LEADER_ID_MISS = new ErrorItem(32, "工程部工程师-视频监控审批  不存在！");

    public static final ErrorItem ENGINEER_MIDDLE_LEADER_ID_MISS = new ErrorItem(33, "工程部分管领导-视频监控审批  不存在！");

    public static final ErrorItem GENERAL_MIDDLE_LEADER_ID_MISS = new ErrorItem(34, "总院分管领导-视频监控审批  不存在！");
}
